package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务周期表
 * @TableName sys_task_cycle
 */
@Data
@TableName(value ="sys_task_cycle")
@ApiModel("周期模型")
public class SysTaskCycle implements Serializable {

    @TableId
    private Long id;

    @ApiModelProperty("周期id")
    private Long cycleId;

    @ApiModelProperty("频率")
    private Integer frequency;

    @ApiModelProperty("岗位id")
    private Long postId;

    @ApiModelProperty("0:未启用，1：启用")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("周期名称")
    @TableField(exist = false)
    private String cycleName;

    @ApiModelProperty("岗位名称")
    @TableField(exist = false)
    private String postName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
